<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta content="" name="description" />
    <meta content="webthemez" name="author" />
    <title>点餐</title>
	<!-- Bootstrap Styles-->
    <link href="__PUBLIC__static/admin/assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FontAwesome Styles-->
    <link href="__PUBLIC__static/admin/assets/css/font-awesome.css" rel="stylesheet" />
     <!-- Morris Chart Styles-->

        <!-- Custom Styles-->
    <link href="__PUBLIC__static/admin/assets/css/custom-styles.css" rel="stylesheet" />
     <!-- Google Fonts-->
   <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
     <!-- TABLE STYLES-->
    <link href="__PUBLIC__static/admin/assets/js/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
     <style type="text/css">
            td  {
                overflow: hidden;/*内容超出后隐藏*/
                text-overflow: ellipsis;/* 超出内容显示为省略号*/
                white-space: nowrap;/*文本不进行换行*/
            }

            th  {
                overflow: hidden;/*内容超出后隐藏*/
                text-overflow: ellipsis;/* 超出内容显示为省略号*/
                white-space: nowrap;/*文本不进行换行*/
            }
        </style>
</head>
<body>
    <div id="wrapper">
        {include file="layout/top" / }
        <!--/. NAV TOP  -->
      {include file="layout/left" / }
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper" >
		  <div class="header">
                        <h1 class="page-header">
                            店 铺 <small>列 表</small>
                        </h1>
						<ol class="breadcrumb">
					  <li><a href="{:url('admin/ht/index')}">Home</a></li>
					  <li>店铺列表</li>

					</ol>

		</div>

            <div id="page-inner">


                <!-- /. ROW  -->
            <div class="row">
                <div class="col-md-12">
                  <!--   Kitchen Sink -->
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <a href="{:url('admin/shop/add')}">添加 店铺 </a>
                        </div>


      <div class="row">


        </div>
                        <div class="panel-body">
                         <div class="row">
                        <div class="col-xs-12">
                            <div class="panel panel-default">

                                <div class="panel-body">
                                    <form action="{:url('admin/shop/search')}" method="post" class="form-inline">
                                        <div class="form-group">

                                            <input type="text" class="form-control" name="like" id="exampleInputName2" placeholder="店铺名称">
                                        </div>

                                        <button type="submit" class="btn btn-default">搜索</button>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                        <tr>
										<th style=" text-align: center;line-height:20px" class="chaochu">ID</th>
                                           <th style=" text-align: center;line-height:20px" class="chaochu">用户名</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">店铺名称</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">位置</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">门店logo</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">联系方式</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">主营类目</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">建立时间</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">排序</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">是否审核</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">店铺状态</th>
                                            <th style=" text-align: center;line-height:20px" class="chaochu">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                       {volist name="data" id="data"}
                                        <tr class="odd gradeX">
										<td style=" text-align: center;line-height:50px" class="chaochu">{$data.iid}</td>
										<td style=" text-align: center;line-height:50px" class="chaochu">{$data.username}</td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu">{$data.business_name}</td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu">{$data.business_address}</td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu"><img style="width:50px;height:50px" src="__PUBLIC__uploads/shop/{$data.business_logo}" alt=""></td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu">{$data.contact_tel}</td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu">{$data.shop_type_name}</td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu">{$data.business_pt}</td>
                                            <td style=" text-align: center;line-height:50px" class="chaochu">{$data.isort}</td>

                                             {eq name="$data.business_trial" value="2"}
                                            <td style=" text-align: center;line-height:50px" class="chaochu"><a href="{:url('admin/shop/trial',array('id' => $data.iid))}" class="btn btn-success">已通过</a></td>
                                            {else /}
                                            <td style=" text-align: center;line-height:50px" class="chaochu"><a href="{:url('admin/shop/trial',array('id' => $data.iid))}" class="btn btn-danger">未审核</a></td>
                                            {/eq}

                                            {eq name="$data.business_static" value="1"}
                                            <td style=" text-align: center;line-height:50px" class="chaochu"><a href="{:url('admin/shop/down',array('id' => $data.iid))}" class="btn btn-success">开启中...</a></td>
                                            {else /}
                                            <td style=" text-align: center;line-height:50px" class="chaochu"><a href="{:url('admin/shop/down',array('id' => $data.iid))}" class="btn btn-danger">关闭中...</a></td>
                                            {/eq}
                                            <td style=" text-align: center;line-height:50px"   class="center chaochu">
                                            <a class="btn btn-info btn-sm" href="{:url('admin/shop/tube',array('id' => $data.iid))}">管理店铺</a> |

                                           <a class="btn btn-warning btn-sm" href="{:url('admin/shop/uppwd',array('id' => $data.iid))}">修改密码</a> |
										   <a class="btn btn-info" target="_blank" href="{:url('admin/shop/open',array('id' => $data.iid))}">登陆</a> |<a class="btn btn-danger btn-sm" href="javascript:del_fun('{:url('admin/shop/delete',array('id' => $data.iid))}')">移除</a></td>


                                        </tr>
                                    {/volist}
                                    </tbody>


                                </table>
                                 {$page}
                            </div>
                        </div>
                    </div>
                     <!-- End  Kitchen Sink -->
                </div>

            </div>


        </div>
               <footer> </footer>
    </div>
             <!-- /. PAGE INNER  -->
            </div>
         <!-- /. PAGE WRAPPER  -->
     <!-- /. WRAPPER  -->
    <!-- JS Scripts-->
    <!-- jQuery Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery-1.10.2.js"></script>
      <!-- Bootstrap Js -->
    <script src="__PUBLIC__static/admin/assets/js/bootstrap.min.js"></script>
    <!-- Metis Menu Js -->
    <script src="__PUBLIC__static/admin/assets/js/jquery.metisMenu.js"></script>
     <!-- DATA TABLE SCRIPTS -->
    <script src="__PUBLIC__static/admin/assets/js/dataTables/jquery.dataTables.js"></script>
    <script src="__PUBLIC__static/admin/assets/js/dataTables/dataTables.bootstrap.js"></script>
        <script>
			function del_fun(del_url)
			{
				if(confirm("确认删除？"))
					location.href = del_url;
			}


            $(document).ready(function () {
                $('#dataTables-example').dataTable();
            });
    </script>
         <!-- Custom Js -->
    <script src="__PUBLIC__static/admin/assets/js/custom-scripts.js"></script>


</body>
</html>
